import java.util.Arrays;
import java.util.Random;
import java.util.Scanner;

public class NGuessNumber {
    public static void main(String[] args) {

    }
    public int[] generateAnswers() {
        int[] arry = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9};
        int[] result = new int[4];
        boolean a;
        Random rs = new Random();
        for (int i = 0; i < result.length; i++) {
            a = true;
            while (a) {
                boolean b = true;
                int index = rs.nextInt(arry.length);
                for (int y = 0; y < result.length; y++) {
                    if (arry[index] == result[y]) {
                        b = false;
                        break;
                    }
                }
                if (b) {
                    result[i] = arry[index];
                    a = false;
                }
            }
        }
        System.out.println(Arrays.toString(result));
        return arry;
    }
    public static int[] getPlayerInput(){
        Scanner in = new Scanner(System.in);
        System.out.println("请输入四个数字：");
        int a = in.nextInt();
        int b = in.nextInt();
        int c = in.nextInt();
        int d = in.nextInt();
        System.out.println(a + "," + b + "," + c + "," + d);
        return new int[0];
    }
    public static void compareGuessAnswer(){

    }
}
